package com.sz.biz.logistics.core.service;

import com.sz.biz.logistics.core.entity.PriceFreightWeightSetting;

import java.util.List;

/**
 * Created by xutao on 17/3/23.
 */
public interface PriceFreightWeightSettingService {
    /**
     * 新增
     *
     * @param entry 新增的实体
     * @return 新增是否成功
     */
    int save(PriceFreightWeightSetting entry);

    /**
     * 批量新增
     *
     * @param list
     */
    void batchsave(List<PriceFreightWeightSetting> list);

    /**
     * 根据quotationId查询单个实体
     *
     * @param quotationId quotationId
     * @return 查询出来的实体对象
     */
    List<PriceFreightWeightSetting> findByQuotationId(Integer quotationId);

    /**
     * 根据quotationId查询单个实体
     *
     * @param quotationSetId quotationSetId
     * @return 查询出来的实体对象
     */
    List<PriceFreightWeightSetting> findByQuotationSetId(Integer quotationSetId);

    /**
     * 根据主键Id查询单个实体
     *
     * @param id 主键id
     * @return 查询出来的实体对象
     */
    PriceFreightWeightSetting findById(Integer id);


    /**
     * 根据quotationSetId删除实体
     *
     * @param
     * @return
     */
    void deletedByQuotationSetId(Integer quotationSetId);

    /**
     * 根据quotationId删除实体
     *
     * @param
     * @return
     */
    void deletedByQuotationId(Integer quotationId);
}
